﻿@model Dyn.News.Models.NewsCategoryPart
@using Dyn.News.Models;
@{
    NewsCategoryPart news = Model as NewsCategoryPart;
    }
<fieldset>
     <div class="item">
        <div class="item-lable">@Html.LabelFor(m => m.Description, T("Description"))</div>
        <div class="item-editor">@Html.TextAreaFor(m => m.Description, 5, 60, null)</div>
        <div class="item-validate">@Html.ValidationMessageFor(m => m.Description, "*")</div>
    </div>
    <div class="item">
        <div class="item-lable">@Html.LabelFor(m => m.OrderDisplay, T("Order Display"))</div>
        <div class="item-editor">@Html.TextBoxFor(m => m.OrderDisplay)</div>
        <div class="item-validate">@Html.ValidationMessageFor(m => m.OrderDisplay, "*")</div>
    </div>
    <div class="item">
        <div class="item-lable">@Html.LabelFor(m => m.ParentID, T("Parent's Category"))</div>
        @try
        {
        <div class="item-editor">@Html.DropDownListFor(m => m.ParentID, new SelectList(Model.CategoryParents, "Id", "Name"), "Root")</div>
        }
        catch
        { 
        }
    </div>
</fieldset>